home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / utilities / gmdev300.lha / Sample / vmemsupport.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-07  |  957 b   |  23 lines

  1. /* Prototypes for vmem.library support routines    */
  2. /* Link with vmemsupport.o */
  3.  
  4. /* Init and exit calls */
  5. extern void OpenVMem(void);    /* Open vmem.library, CALL FIRST    */
  6. extern void CloseVMem(void);    /* Close vmem.library, CALL BEFORE EXIT    */
  7.  
  8. /* These are emulation calls which are safe even if vmem.library */
  9. /* is not present                          */
  10. /* Read autodocs for more information about the associated calls */
  11.  
  12. /* Allocation and free calls */                    /* Emulates:  */
  13. extern APTR VAllocMem(ULONG size, ULONG reqs, ULONG flags); /* VMAllocMem */
  14. extern void VFreeMem(APTR mem, ULONG size);            /* VMFreeMem  */
  15. extern APTR VAllocVec(ULONG size, ULONG reqs, ULONG flags); /* VMAllocVec */
  16. extern void VFreeVec(APTR mem);                    /* VMFreeVec  */
  17.  
  18. /* Get information calls */
  19. extern ULONG VAvailMem(ULONG reqs, ULONG flags);     /* VMAvailMem    */
  20. extern BOOL  VTypeOfMem(APTR addr);             /* VMTypeOfMem   */
  21. extern ULONG VGetPageSize(void);             /* VMGetPageSize */
  22.  
  23.